package com.virtualightning.app.ui.main

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.virtualightning.app.MessageModel
import com.virtualightning.app.databinding.MainFragmentBinding
import com.virtualightning.app.databinding.MainFragmentBindingImpl
import com.virtualightning.mvvm.base.BaseFragment

class MainFragment : BaseFragment() {
    lateinit var binding: MainFragmentBinding

    companion object {
        fun newInstance() = MainFragment()
    }

    private lateinit var viewModel: MessageModel

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?,
                              savedInstanceState: Bundle?): View {
        binding = MainFragmentBindingImpl.inflate(layoutInflater)
        binding.root.setOnClickListener {
        }
        return binding.root
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)
        binding.msg = viewModel

    }

}
